package com.sunfield.windpower.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by wxl on 2017/5/31.
 */

class FileDownloadDBHeloper extends SQLiteOpenHelper {
    private static final String DBNAME = "download.db";
    private static final int VERSION = 1;

    public FileDownloadDBHeloper(Context context) {
        super(context, DBNAME, null, VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("CREATE TABLE IF NOT EXISTS download_info (download_id text primary key, file_url text, file_local_uri text, download_status text )");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
